import request from '@/utils/request'

// 获取可引用模板列表
export function getQuoteTemplateList(data) {
  return request({
    url: '/db/DbTemplate/getQuoteTemplateList',
    method: 'post',
    data
  })
}

// 获取新增数据库
export function createDatabase(data) {
  return request({
    url: '/db/DbDatabase/createDatabase',
    method: 'post',
    data
  })
}

// 获取所有可选总库列表
export function getAllSetectParDb(data) {
  return request({
    url: '/db/DbDatabase/getAllSetectParDb',
    method: 'post',
    data
  })
}
// 获取总库下可选择的子库
export function getSelectDbByParId(data) {
  return request({
    url: '/db/DbDatabase/getSelectDbByParId',
    method: 'post',
    data
  })
}
// 删除数据库
export function deleteDatabase(data) {
  return request({
    url: '/db/DbDatabase/deleteDatabase',
    method: 'post',
    data
  })
}
